<template>
  <search class="search"></search>
  <div class="list" v-if="user.shareList.length>0">
    <concernItem v-for="(item) in user.shareList" :item="item" :key="item.shareposts_id" ></concernItem>
  </div>
</template>

<script setup lang='ts'>
import concernItem from '@/components/concernItem.vue';
import search from '@/components/search.vue';
import { userStore } from '@/store';
import { onMounted } from 'vue';
const user=userStore()

onMounted(async ()=>{
   user.getShareListInfo()
})


</script>

<style lang='less' scoped>
.list{
  width: 100%;
  position: relative;
  box-sizing: border-box;
  padding-top: 3.375rem;
}
.search {
    position: fixed;
    top: 0;
    z-index: 100;
  }
</style>
